:root {
  --main-bg: #f7f7f9;
  --header-bg: #fff;
  --accent: #409eff;
  --text: #222;
  --muted: #888;
  --card-bg: #fff;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
}

.avatar-head-container {
  position: relative;
  width: 240px; /* 原120px × 2 */
  height: 240px; /* 原120px × 2 */
  user-select: none;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
}

.avatar-head {
  width: 200px; /* 原100px × 2 */
  height: 200px; /* 原100px × 2 */
  background: radial-gradient(circle at 60% 40%, #fffde4 60%, #ffe0b2 100%);
  border-radius: 50%;
  position: absolute;
  top: 20px; /* 原10px × 2 */
  left: 20px; /* 原10px × 2 */
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.10); /* 阴影也按比例放大 */
  border: 6px solid #165DFF; /* 原3px × 2 */
  z-index: 3;
}

.eye {
  width: 40px; /* 原20px × 2 */
  height: 40px; /* 原20px × 2 */
  background: #fff;
  border-radius: 50%;
  position: absolute;
  top: 76px; /* 原38px × 2 */
  border: 4px solid #165DFF; /* 原2px × 2 */
  overflow: hidden;
  z-index: 4;
}

.eye.left {
  left: 44px; /* 原22px × 2 */
}

.eye.right {
  right: 44px; /* 原22px × 2 */
}

.pupil {
  width: 16px; /* 原8px × 2 */
  height: 16px; /* 原8px × 2 */
  background: #165DFF;
  border-radius: 50%;
  position: absolute;
  top: 12px; /* 原6px × 2 */
  left: 12px; /* 原6px × 2 */
  transition: all 0.12s cubic-bezier(.4, 2, .6, 1);
}

.mouth {
  position: relative;
  width: 56px; /* 原28px × 2 */
  height: 24px; /* 原12px × 2 */
  border-radius: 0 0 50% 50%;
  border: 4px solid #165DFF; /* 原2px × 2 */
  border-top: none;
  position: absolute;
  bottom: 36px; /* 原18px × 2 */
  left: 72px; /* 原36px × 2 */
  background: none;
  transition: all 0.3s cubic-bezier(.4, 2, .6, 1);
}

.blush {
  width: 16px; /* 原8px × 2 */
  height: 8px; /* 原4px × 2 */
  background: #f8c6c6;
  border-radius: 50%;
  position: absolute;
  top: 140px; /* 原70px × 2 */
  opacity: 0.7;
  z-index: 5;
}

.blush.left {
  left: 36px; /* 原18px × 2 */
}

.blush.right {
  right: 36px; /* 原18px × 2 */
}
body {
  background: var(--main-bg);
  color: var(--text);
  font-family: 'Helvetica Neue', Helvetica, Arial, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  margin: 0;
  padding: 0;
}

header {
  background: var(--header-bg);
  box-shadow: var(--shadow);
  padding: 2rem 0 1rem 0;
  text-align: center;
}

header h1 {
  margin: 0;
  font-size: 2.5rem;
  letter-spacing: 2px;
  color: var(--accent);
}

header .subtitle {
  color: var(--muted);
  font-size: 1.15rem;
  margin: 0.5rem 0 1rem 0;
}

nav {
  margin-bottom: 1rem;
}

nav a {
  color: var(--accent);
  margin: 0 1em;
  text-decoration: none;
  transition: color 0.2s;
}

nav a:hover {
  color: #1a73e8;
}

nav button {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.2rem;
  margin-left: 1em;
}

main {
  max-width: 750px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.posts {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.post-card {
  background: var(--card-bg);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 1.5rem 1rem;
  transition: transform 0.15s, box-shadow 0.15s;
}

.post-card:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 4px 16px rgba(64, 158, 255, 0.08);
}

.post-card h2 {
  margin: 0 0 0.25em 0;
  font-size: 1.5rem;
}

.post-card h2 a {
  color: var(--text);
  text-decoration: none;
}

.post-card h2 a:hover {
  color: var(--accent);
}

.post-meta {
  color: var(--muted);
  font-size: 0.95em;
  margin-bottom: 0.5em;
}

.post-summary {
  margin: 0.5em 0 0 0;
  color: #333;
}

.tools,
.about,
.contact {
  background: var(--card-bg);
  border-radius: 10px;
  margin: 2rem 0 0 0;
  padding: 1.2rem 1rem;
  box-shadow: var(--shadow);
}

footer {
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
  margin: 2rem 0 1rem 0;
}

@media (max-width: 600px) {
  header h1 {
    font-size: 2rem;
  }

  main {
    padding: 0 0.3rem;
  }

  .tools,
  .about,
  .contact {
    padding: 1rem 0.5rem;
  }
}

body.dark {
  --main-bg: #21232a;
  --header-bg: #23262f;
  --accent: #6ca0ff;
  --text: #f5f5f7;
  --muted: #bbb;
  --card-bg: #282a36;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}
